package org.honeyweb.gsoc.services.impl;

import java.util.ArrayList;

import org.honeyweb.gsoc.dao.RunsDao;
import org.honeyweb.gsoc.model.Runs;
import org.honeyweb.gsoc.model.Urls;
import org.honeyweb.gsoc.services.RunsManager;

public class RunsManagerImpl implements RunsManager {
	
    private RunsDao runsDao = null;
    
	/**
     * setter to allows spring to inject runsDao implementation
     * @param runsDao : object (implementation of runsDao interface) to inject.
     */
    public void setRunsDao(RunsDao runsDao) {
		this.runsDao = runsDao;
	}

	public ArrayList<Runs> getRuns(int id_user){
		ArrayList<Runs> runsArray = new ArrayList<Runs>();
		runsArray = this.runsDao.getRuns(id_user);
		return runsArray;
	}
}
